import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import CertificationView from '../views/CertificationView.vue'
const router = createRouter({
  history: createWebHashHistory(), // createWebHistory createWebHashHistory
  routes: [
   
    {
      path: '/', // 主页
      name: 'home',
      component: HomeView
    },
    {
      path: '/detail', // 支出明细
      name: 'detail',
      component: () => import('../views/DetailView.vue')
    },
    {
      path: '/detailincome', // 收入明细
      name: 'detailincome',
      component: () => import('../views/DetailIncomeView.vue')
    },
    {
      path: '/certification', // 供应商认证
      name: 'certification',
      component: CertificationView
    },
    {
      path: '/error', // 错误页面
      name: 'error',
      component: () => import('../views/ErrorView.vue')
    },
  ]
})

export default router
